/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 顶部区域样式 */
.top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 20px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.time {
  align-self: flex-start;
  font-weight: 500;
  margin-bottom: 10px;
}

.functionButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
}

.addFriendBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 110px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.addFriendBtn:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.02);
}

.newVisitorBtn {
  width: 100px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newVisitorBtn:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.02);
}

.searchIcon, .menuIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.searchIcon:hover, .menuIcon:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

/* 头像和个人信息区域 */
.avatarAndText {
  display: flex;
  align-items: center;
  margin-top: 10px;
  width: 100%;
}

.phonto {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.phonto:hover {
  transform: scale(1.05);
}

.userInfo {
  margin-left: 15px;
}

.userName {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.douyinId {
  font-size: 14px;
  opacity: 0.8;
  font-weight: normal;
}

/* 底部内容区域 */
.bottom {
  padding: 15px;
  background-color: #f8f8f8;
  min-height: calc(100vh - 200px);
}

/* 统计数据区域 */
.fensi {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
  background-color: white;
  padding: 15px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.statItem {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.statItem:hover {
  transform: translateY(-2px);
}

.statNum {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.statLabel {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 3px;
}

.editProfileBtn {
  background-color: #ff4d4f;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.editProfileBtn:hover {
  background-color: #ff7875;
  transform: scale(1.05);
}

/* 介绍区域 */
.jsarea {
  width: 100%;
  height: 40px;
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background-color: white;
  font-size: 14px;
  resize: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jsarea:focus {
  outline: none;
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

/* 标签区域 */
.tagsArea {
  margin-bottom: 15px;
}

.addTagBtn {
  background-color: white;
  border: 1px dashed #ddd;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.addTagBtn:hover {
  border-color: #ff4d4f;
  color: #ff4d4f;
}

/* 抖音商城区域 */
.shopPromo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background-color: white;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.shopPromo:hover {
  transform: translateY(-2px);
}

.shopIcon {
  font-size: 24px;
  color: #ff4d4f;
  margin-right: 10px;
}

.shopText {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* 操作按钮区域 */
.actionButtons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.editBtn, .addBtn {
  width: 48%;
  height: 40px;
  border-radius: 20px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.editBtn {
  background-color: #ff4d4f;
  color: white;
}

.addBtn {
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
}

.editBtn:hover, .addBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 内容分类标签 */
.contentTabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.tabBtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  padding: 5px 15px;
  position: relative;
  transition: all 0.3s ease;
}

.tabBtn:hover {
  color: #ff4d4f;
}

.activeTab {
  color: #ff4d4f;
  font-weight: 600;
}

.activeTab::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background-color: #ff4d4f;
  border-radius: 3px;
}

/* 作品展示区域 */
.workDisplay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.workItem {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.workItem:hover {
  transform: translateY(-3px);
}

.workThumbnail {
  width: 100%;
  height: 180px;
  background-color: #f0f0f0;
  overflow: hidden;
}

.workViewCount {
  font-size: 12px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.videoOverlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enlargedVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.9);
  object-fit: contain;
  display: block;
}

/* 视频播放器样式 */
.videoPlayerOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.videoPlayerContainer {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
}

.closeVideoBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s ease;
}

.closeVideoBtn:hover {
  background-color: rgba(255, 35, 102, 0.8);
  transform: scale(1.1);
}

.videoControls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: space-around;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.likeButton, .shareButton {
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.likeButton:hover, .shareButton:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.emptyWorkState {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.recordNewBtn {
  padding: 8px 16px;
  background-color: #ff2366;
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.recordNewBtn:hover {
  background-color: #e61e5c;
  transform: translateY(-2px);
}

.closeVideoBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.closeVideoBtn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.emptyWorkState {
  grid-column: span 3;
  text-align: center;
  padding: 30px 0;
  color: #999;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 关注粉丝样式 */
.FriendsItem {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.FriendsItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.avatarfriend {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.friendInfo {
  flex: 1;
}

.friendInfo h3 {
  font-size: 16px;
  margin-bottom: 3px;
  color: #333;
}

.friendInfo p {
  font-size: 14px;
  color: #666;
}

.yhadd {
  margin-left: auto;
  font-size: 20px;
  color: #ff4d4f;
}

/* 保留其他必要样式 */
.editProfilePage {
  padding: 20px;
}

.avatarSection {
  margin-bottom: 20px;
}

.avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.inputSection {
  margin-bottom: 10px;
}

.saveButton {
  margin-top: 20px;
}

/* 保留其他必要样式 */
.pageHeader {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pageTitle {
  margin: 15px 0;
  padding: 0 15px;
  font-size: 20px;
  color: #333;
}

.friendsList {
  padding: 0 15px;
}

.emptyState {
  text-align: center;
  padding: 30px 0;
  color: #999;
}